package com.yunduansing.core.service;

import java.util.List;

import com.yunduansing.core.dto.MenuDetailDto;
import com.yunduansing.core.dto.Template;
import com.yunduansing.core.model.ButtonModel;
import com.yunduansing.core.model.MenuModel;
import com.yunduansing.core.utils.ResultUtil;

public interface MenuService extends BaseService<MenuModel> {
	/**
	 * 生成json格式的菜单，用于生成tree菜单
	 * @return
	 */
	String getMenuJson(boolean showButton);
	
	MenuDetailDto getModelAndParentById(int id);
	
	Object getButtonsByMenuId(int menuId);
	
	ResultUtil saveButton(ButtonModel model);
	
	ResultUtil deleteButtonById(int id);
	
	List<ButtonModel> getButtonAll();
}
